package com.tsy.graduate.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tsy.graduate.bean.Exam;
import com.tsy.graduate.bean.Lesson;
import com.tsy.graduate.mapper.LessonMapper;
import org.springframework.stereotype.Service;

@Service
public class LessonService extends ServiceImpl<LessonMapper, Lesson> {
    public Long saveAndId(Lesson entity){
        this.baseMapper.insert(entity);
        return entity.getId();
    }
}
